<html>
<head><meta charset="utf-8"><title>error: could not compile `jobserver` · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20could.20not.20compile.20.60jobserver.60.html">error: could not compile `jobserver`</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="234312727"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20could%20not%20compile%20%60jobserver%60/near/234312727" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joel Swedensky <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20could.20not.20compile.20.60jobserver.60.html#234312727">(Apr 13 2021 at 12:07)</a>:</h4>
<p>Hi, I'm trying to work on <code>rustc_errors</code>, and I've been loading it into VSCode. I added</p>
<div class="codehilite" data-code-language="JSON"><pre><span></span><code><span class="p">{</span>
    <span class="nt">"rust-analyzer.checkOnSave.overrideCommand"</span><span class="p">:</span> <span class="p">[</span>
        <span class="s2">"./x.py"</span><span class="p">,</span>
        <span class="s2">"check"</span><span class="p">,</span>
        <span class="s2">"--json-output"</span>
    <span class="p">],</span>
    <span class="nt">"rust-analyzer.rustfmt.overrideCommand"</span><span class="p">:</span> <span class="p">[</span>
      <span class="s2">"./build/TARGET_TRIPLE/stage0/bin/rustfmt"</span>
    <span class="p">],</span>
    <span class="nt">"editor.formatOnSave"</span><span class="p">:</span> <span class="kc">true</span>
<span class="p">}</span>
</code></pre></div>
<p>to my <code>.vscode/settings.json</code> and ran <code>git submodule update --init</code>.</p>
<p>After reloading VSCode, it checked for a while but then crashed with</p>
<div class="codehilite"><pre><span></span><code>error: could not compile `jobserver`
</code></pre></div>
<p>which made a warning symbol appear. It's still running <code>cargo check</code> though, did I do something wrong or should I just leave it?<br>
<a href="/user_uploads/4715/g25EAFrFk0KnXUQLdtnPCQzH/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/g25EAFrFk0KnXUQLdtnPCQzH/image.png" title="image.png"><img src="/user_uploads/4715/g25EAFrFk0KnXUQLdtnPCQzH/image.png"></a></div>



<a name="234313163"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20could%20not%20compile%20%60jobserver%60/near/234313163" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20could.20not.20compile.20.60jobserver.60.html#234313163">(Apr 13 2021 at 12:11)</a>:</h4>
<p>Does running <code>./x.py check</code> yourself work?</p>



<a name="234326099"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20could%20not%20compile%20%60jobserver%60/near/234326099" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joel Swedensky <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20could.20not.20compile.20.60jobserver.60.html#234326099">(Apr 13 2021 at 13:38)</a>:</h4>
<p>Yes, and it's a lot quicker.</p>



<a name="234333273"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20could%20not%20compile%20%60jobserver%60/near/234333273" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20could.20not.20compile.20.60jobserver.60.html#234333273">(Apr 13 2021 at 14:18)</a>:</h4>
<blockquote>
<div class="codehilite"><pre><span></span><code>&quot;rust-analyzer.rustfmt.overrideCommand&quot;: [
  &quot;./build/TARGET_TRIPLE/stage0/bin/rustfmt&quot;
],
</code></pre></div>

</blockquote>
<p>fyi you need to replace TARGET_TRIPLE with your host target</p>



<a name="234379017"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20could%20not%20compile%20%60jobserver%60/near/234379017" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joel Swedensky <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20could.20not.20compile.20.60jobserver.60.html#234379017">(Apr 13 2021 at 18:39)</a>:</h4>
<p>Yeah, I had already done that. Oh well, this doesn't seem to affect how vscode works.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>